package org.myspringframework.aop;

//被代理的目标类
public class TargetSource {

    //被代理的目标
    private final Object target;


    public TargetSource(Object target) {
        this.target = target;
    }

    /**
     * 返回被代理的目标的接口
     */
    public Class<?>[] getTargetClass(){
        return this.target.getClass().getInterfaces();
    }

    /**
     * 返回被代理原对象
     */
    public Object getTarget(){
        return this.target;
    }

}